package com.xqb.modules.domain.po;

import com.xqb.common.annotation.Excel;
import com.xqb.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 学习积分记录对象 std_points_record
 * 
 * @author xqb
 * @date 2024-10-14
 */
public class StdPointsRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分记录表id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 积分方式：1-课程学习，2-每日签到，3-课程问答， 4-课程笔记，5-课程评价 */
    @Excel(name = "积分方式：1-课程学习，2-每日签到，3-课程问答， 4-课程笔记，5-课程评价")
    private Long type;

    /** 积分值 */
    @Excel(name = "积分值")
    private Long points;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("points", getPoints())
            .append("createTime", getCreateTime())
            .toString();
    }
}
